shortcuts: Fix the circular stack switcher
authorMatthias Clasen <mclasen@redhat.com>
Wed, 16 Dec 2015 00:39:57 +0000 (19:39 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 16 Dec 2015 00:41:05 +0000 (19:41 -0500)
The buttons need to set min-width now, to make this work.

gtk/gtkshortcutssection.c
gtk/theme/Adwaita/_common.scss
gtk/theme/Adwaita/gtk-contained-dark.css
gtk/theme/Adwaita/gtk-contained.css

index 0ca0386a872e054b0df7cf5be8bdc08fe20f4478..3295ebb8855370af42d31119991661a1bae5a60c 100644 (file)
@@ -586,12 +586,6 @@ adjust_page_buttons (GtkWidget *widget,
 {
   GtkWidget *label;
 
-  /*
-   * TODO: This is a hack to get the GtkStackSwitcher radio
-   *       buttons to look how we want. However, it's very
-   *       much font size specific.
-   */
-  gtk_widget_set_size_request (widget, 34, 34);
   gtk_style_context_add_class (gtk_widget_get_style_context (widget), "circular");
 
   label = gtk_bin_get_child (GTK_BIN (widget));
index 2ed068d2f6dc9e64f99c6bd6f3742bf6f8621a68..e8b1e84bba9a7715383df1f8a8b4e158ccf32c14 100644 (file)
@@ -3379,3 +3379,7 @@ frame.keycap {
 stackswitcher button.text-button {
   min-width: 100px;
 }
+
+stackswitcher button.circular {
+  min-width: 0px;
+}
index 6d8c89d85aa6366499dc42d6c10a11e3924774b1..4a056fa00a3430a701312cdb0a12fe70689e5102 100644 (file)
@@ -4556,6 +4556,11 @@ stackswitcher .titlebar button.text-button.titlebutton,
 .titlebar stackswitcher button.text-button.titlebutton {
   min-width: 100px; }
 
+stackswitcher button.circular,
+stackswitcher .titlebar button.circular.titlebutton,
+.titlebar stackswitcher button.circular.titlebutton {
+  min-width: 0px; }
+
 /* GTK NAMED COLORS
    ----------------
    use responsibly! */
index 1b4c6bcb19824d86a5b6108ad1cfffbae5b01db7..493aeb7d52234c94d1698274effb77320709e49b 100644 (file)
@@ -4729,6 +4729,11 @@ stackswitcher .titlebar button.text-button.titlebutton,
 .titlebar stackswitcher button.text-button.titlebutton {
   min-width: 100px; }
 
+stackswitcher button.circular,
+stackswitcher .titlebar button.circular.titlebutton,
+.titlebar stackswitcher button.circular.titlebutton {
+  min-width: 0px; }
+
 /* GTK NAMED COLORS
    ----------------
    use responsibly! */